﻿@model Loja.Models.ClienteModels
@using Telerik.Web.Mvc.UI;
<div id="aviso" class="aviso">
    <label>
        *&nbsp;Campo de preenchimento obrigatório.</label></div>
<br />
<div>
    @using (Ajax.BeginForm(ViewData["Action"].ToString(), "Consumer", new AjaxOptions { HttpMethod = "POST",  OnSuccess = "onSuccess" }))
    {
        <div>
            <input id="btnSalvar" title="Salvar" type="image" title="Salvar" src="@Url.Content("~/Content/Images/crud/save.png")" />&nbsp;
            <a href="javascript:Cancelar();">
                <img src="@Url.Content("~/Content/Images/crud/undo.png")" title="Cancelar" /></a>
        </div>
    
        <br />
        <div class="grupo">
            <table width="100%">
                <tr>
                    <td align="right" style="width:150px">
                        <label>Nome:</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(o => o.Nome)
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <label>Endereço:</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(o => o.Endereco)
                    </td>
                </tr>
                 <tr>
                    <td align="right">
                        <label>Telefone:</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(o => o.Telefone)
                    </td>
                </tr>
                 <tr>
                    <td align="right">
                        <label>Celular</label>
                    </td>
                    <td>
                         @Html.TextBoxFor(o => o.Celular)
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <label>Data de Nascimento:</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(o => o.DataNasc)
                    </td>
                </tr>
                <tr>
                    @Html.HiddenFor(o=> o.IdCliente)
                </tr>
            </table>
        </div>
    }
